#pragma once
// #define BYTE_ORDER

//TODO:检测系统为大端存储/小端存储，确定后设置ORDER_LITTLE_ENDIAN/ORDER_BIG_ENDIAN
// #define ORDER_LITTLE_ENDIAN
// #define ORDER_BIG_ENDIAN

#if defined(BYTE_ORDER) && defined(ORDER_LITTLE_ENDIAN)
#define ENDIAN 1
#elif defined(BYTE_ORDER) && defined(ORDER_BIG_ENDIAN)
#define ENDIAN 0
#else
#define ERROR "Unknown byte order"
#endif